﻿//
//  Windows_libc
//
//  Created by  cc_team(陈旭，陈曦) qq:511272827.
//  Copyright 2011 cc_team. All rights reserved.
//
#ifndef CC_DIV_H
#define CC_DIV_H

#ifdef __cplusplus
extern "C" {
#endif

typedef struct cc_div_t
{
	int quot;
	int mod;
}cc_div_t;

typedef struct cc_ldiv_t
{
	long quot;
	long mod;
}cc_ldiv_t;

typedef struct cc_lldiv_t
{
	long long quot;
	long long mod;
}cc_lldiv_t;

cc_div_t cc_div(int number, int denom);
cc_ldiv_t cc_ldiv(long number, long denom);
cc_lldiv_t cc_lldiv(long long number, long long denom);

#ifdef __cplusplus
}		// extern "C"
#endif

#endif